/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: xiaotutu
 * Date: 2023-09-09
 * Time: 10:15
 */


class Person {
    public String name;
    public int age;

    public void eat() {
        System.out.println(name + "在吃饭");
    }
}

class WashMachine {
    public String brand;
    public String type;
    public double weight;
    public double length;
    public double width;
    public double high;
    public String color;

    public void washClothes() {
        System.out.println("洗衣功能");
    }

    public void dryClothes() {
        System.out.println("脱水功能");
    }
    public void setTime() {
        System.out.println("定时功能");
    }
}

class Dog {
    public String name;
    public int eat;

    public void eat() {
        System.out.println("吃东西");
    }
}

public class TestDemo {
    public static void main(String[] args) {
        Person person1 = new Person();
        person1.age = 20;
        person1.name = "zhangsan";
        person1.eat();
        Person person2 = new Person();
        person2.age = 30;
        person2.name = "lisi";
        person2.eat();
    }
    public static void main1(String[] args) {
        WashMachine washMachine1 = new WashMachine();
        washMachine1.brand = "小天鹅";
        washMachine1.dryClothes();
        washMachine1.washClothes();
        washMachine1.setTime();
        System.out.println(washMachine1.brand);
        WashMachine washMachine2 = new WashMachine();
        washMachine2.brand = "大黑鸭";
        System.out.println(washMachine2.brand);
    }
}
